<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<table id="VehicleInfoTable" style="min-width:400px;" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<td style="width:20px;"><input type="checkbox" onclick="selectAllForList('VehicleInfoTable')"></td>
			<td>布控类型</td>
			<td>号牌号码</td>
			<td>号牌种类</td>
			<td>车辆分类</td>
			<td>生效时间</td>
			<td>截止时间</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${listControlVehicle}" var="controlVehicle">
			<tr id="objId_${controlVehicle.id }" >
				<td><input type="checkbox" value="${controlVehicle.id }" name="controlVehicleIds"></td>
				<td>${controlVehicle.controlType.name }</td>
				<td>${controlVehicle.licencePlate }</td>
				<td>${controlVehicle.licencePlateKind.name }</td>
				<td>${controlVehicle.vehicleType.name }</td>
				<td><fmt:formatDate value="${controlVehicle.beginTime}" pattern='yyyy-MM-dd'/></td>
				<td><fmt:formatDate value="${controlVehicle.endTime}" pattern='yyyy-MM-dd'/></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<div style="width:100%;height:20px;margin-top:10px;">
	<div style="float:left;">记录 共${sQLSelectWhere.recordCount}条 每页${sQLSelectWhere.pageRows}条，共${sQLSelectWhere.recordPage}页</div>
	<div style="float:right;">
	<a href="javascript:findControlVehicleSearchList(0)">首页</a>
	<a href="javascript:findControlVehicleSearchList(${sQLSelectWhere.pageIndex - 1 < 0 ? 0 : (sQLSelectWhere.pageIndex - 1)})">上一页</a>
	<select style="width:38px;" onchange="findControlVehicleSearchList($(this).val())">
		<c:forEach begin="0" end="${sQLSelectWhere.recordPage - 1 < 0 ? 0 : sQLSelectWhere.recordPage - 1}" var="pageIndex">
			<option value="${pageIndex}" ${sQLSelectWhere.pageIndex == pageIndex ? 'selected' : '' }>${pageIndex + 1}</option>
		</c:forEach>
	</select>
	<a href="javascript:findControlVehicleSearchList(${sQLSelectWhere.pageIndex + 1 > sQLSelectWhere.recordPage - 1 ? (sQLSelectWhere.recordPage - 1) : (sQLSelectWhere.pageIndex + 1)})">下一页</a>
	<a href="javascript:findControlVehicleSearchList(${sQLSelectWhere.recordPage - 1})">未页</a>
	</div>
</div>
<script type="text/javascript">
	setTableCSS("VehicleInfoTable");
</script>